home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5930 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  828 b 

  1. Path: solon.com!not-for-mail
  2. From: xmsb@shadow.borland.com (Maurice S. Barnum)
  3. Newsgroups: comp.lang.c.moderated,comp.lang.c
  4. Subject: Re: Please help me elect rounding of int division
  5. Date: 21 Feb 1996 18:57:26 -0600
  6. Organization: Borland Intl
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4ggf1m$8rb@solutions.solon.com>
  10. References: <4gfaif$1tt@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13. swedecj@vcnet.com (Carl Jacobson) writes:
  14.  
  15. >Please help me solve this task.
  16.  
  17. >I have now tried (Borland C++ version 3.0) for two solid days to write
  18. >a function that would allow me to round the quotient of (a/b) up or
  19. >down based on the "nearest" integer instead of being truncated to the
  20. >smallest. If exactly half way, return the "odd."
  21.  
  22.     post what you have written so far.
  23.  
  24.  --xmsb
  25.